package com.yizn.service;

import com.spring.AutoWired;
import com.spring.Component;
import com.spring.InitializingBean;
import com.spring.Scope;

/**
 * project : my-learn
 * <p> bean对象类 </p>
 *
 * @author yisl
 * @date 2022-07-22【星期五】
 **/
@Component("userService")
@Scope("singleton")
public class UserService implements UserInterface {

    @AutoWired
    private OrderService orderService;

    //@Override
    //public void afterPropertiesSet() {
    //    System.out.println("初始化");
    //}
    @YiznValue("XXX")
    private String test;

    public void test() {
        System.out.println(test);
    }
}
